// JavaScript Document
$().ready(function(e) {
	//alert("Hello World!");
    $("#frmDatHang").validate({
		errorElement: "span",
		rules:{
				HoTenNN:{required:true},
				DiaChiNhan:{required:true,maxlength:150}, 
				SDT:{required:true,number:true},
				Mail:{required:true,email:true},
				GhiChu:{maxlength:200} 
			},
			messages:{
				}
	});
	 $("#frmDatHangK").validate({
		errorElement: "span",
		rules:{
				HoTenNG:{required:true},				 
				SDTG:{required:true,number:true},
				MailG:{required:true,email:true},
				HoTenNN:{required:true},
				DiaChiNhan:{required:true,maxlength:150}, 	 
				SDTN:{required:true,number:true},
				MailN:{required:true,email:true}, 
				GhiChu:{maxlength:200} 
			},
			messages:{
				}
	});
	$("#frmDangKy").validate({
		errorElement: "span",
		rules:{
				txtTK:{required:true,maxlength:30},				 
				txtMK:{required:true},
				txtMKL:{required:true},
				txtM:{required:true,email:true},
				txtHT:{required:true,maxlength:50},
				txtDC:{required:true,maxlength:150}, 	 
				txtSDT:{required:true,number:true,maxlength:15}
			},
			messages:{
				}
	});
	
	
});
 
	 

 